// eslint.config.js
import antfu from '@antfu/eslint-config'
import vueMacros from '@vue-macros/eslint-config/flat'

export default antfu({
  unocss: true,
  typescript: true,
  formatters: {
    /**
     * Format CSS, LESS, SCSS files, also the `<style>` blocks in Vue
     * By default uses Prettier
     */
    css: true,
    /**
     * Format HTML files
     * By default uses Prettier
     */
    html: true,
    /**
     * Format Markdown files
     * Supports Prettier and dprint
     * By default uses Prettier
     */
    markdown: 'prettier',
  },
}, {
  rules: {
    'no-console': 'warn',
    'ts/no-use-before-define': 'off',
  },
}, [
  vueMacros,
])
